import base from '../request'

// 查询幻灯片播放列表
function slideShow(params) {
    return base.request({
        url: '/slideShow',
        method: 'GET',
        params
    })
}

function randOne(params) {
    return base.request({
        url: '/qb/randOne?num=' + params,
        method: 'GET'
    })
}

function randTen() {
    return base.request({
        url: '/qb/randTen',
        method: 'GET'
    })
}

function searchKeyword(params) {
    return base.request({
        url: '/qb/uniname/' + params,
        method: 'GET'
    })
}

function hotKeywordTopTen() {
    return base.request({
        url: '/qb/top10',
        method: 'GET'
    })
}

function matchKeywords(params) {
    return base.request({
        url: '/qb/name/' + params,
        method: 'GET'
    })
}

function garbageType(index) {
    return base.request({
        url: '/qb/type/' + index,
        method: 'GET',
    })
}

function saveChangeResult(data) {
    return base.request({
        url: '/challenge',
        method: 'POST',
        data
    })
}
export default {slideShow, randTen, randOne, searchKeyword, hotKeywordTopTen,matchKeywords,garbageType,saveChangeResult}